import config from '@/config'

export default {
  backgroundColor: 'transparent',
  animation: false,
  bmap: {
    zoom: 13,
    roam: true,
    mapStyle: {
      styleJson: config.mapStyleJson
    }
  },
  tooltip: {
    trigger: 'item',
    formatter: function(val) {
      return '<div><h5>表具ID</h5>' + val.name + '</div>'
    }
  },
  visualMap: {
    show: false,
    top: 'top',
    min: 0,
    max: 5,
    seriesIndex: 0,
    calculable: true,
    inRange: {
      color: ['blue', 'blue', 'green', 'yellow', 'red']
    }
  },
  series: [
    {
      type: 'heatmap',
      coordinateSystem: 'bmap',
      pointSize: 5,
      blurSize: 6
    }
  ]
}
